package com.dingwei.superiordiary.bean;

import com.dingwei.superiordiary.base.MyBaseBean;

import java.util.List;

/**
 * Created time 2018/2/24.
 * Creator 南柯一梦丶 on
 * Personal signature 余生还长 何必慌张
 * Page description :
 */

public class Index_Bean extends MyBaseBean{

    /**
     * data : {"advert":[{"type":"2","icon":"http://139.199.211.51/yprj/uploads/advert/17/icon.png?r=796755","url":"","product_id":"8"},{"type":"1","icon":"http://139.199.211.51/yprj/uploads/advert/16/icon.png?r=754061","url":"http://www.baidu.com","product_id":""}],"classify":[{"id":"21","name":"护理","icon":"http://139.199.211.51/yprj/uploads/product/category/21/icon.png?r=997554"},{"id":"13","name":"装修装饰","icon":"http://139.199.211.51/yprj/uploads/product/category/13/icon.png?r=616434"},{"id":"10","name":"家居家纺","icon":"http://139.199.211.51/yprj/uploads/product/category/10/icon.png?r=434880"},{"id":"20","name":"保暖","icon":"http://139.199.211.51/yprj/uploads/product/category/20/icon.png?r=229433"},{"id":"16","name":"数码电器","icon":"http://139.199.211.51/yprj/uploads/product/category/16/icon.png?r=438882"}],"product":[{"id":"13","icon":"http://139.199.211.51/yprj/uploads/product/13/icon.png?r=755016","name":"测试商品","video":"http://139.199.211.51/yprj/uploads/product/13/video/18020903590283052.mp4?r=76770","viewed":0,"likes":0,"collection":0},{"id":"12","icon":"http://139.199.211.51/yprj/uploads/product/12/icon.png?r=276180","name":"2121","video":"http://139.199.211.51/yprj/uploads/product/12/video/18021101170449912.mp4?r=78291","viewed":0,"likes":0,"collection":0},{"id":"11","icon":"http://139.199.211.51/yprj/uploads/product/11/icon.png?r=489335","name":"2121","video":"","viewed":0,"likes":0,"collection":0},{"id":"10","icon":"http://139.199.211.51/yprj/uploads/product/10/icon.png?r=160375","name":"212","video":"","viewed":0,"likes":0,"collection":0},{"id":"9","icon":"http://139.199.211.51/yprj/uploads/product/9/icon.png?r=667956","name":"tt","video":"","viewed":0,"likes":0,"collection":0},{"id":"8","icon":"http://139.199.211.51/yprj/uploads/product/8/icon.png?r=411532","name":"商品3","video":"","viewed":0,"likes":0,"collection":0},{"id":"7","icon":"http://139.199.211.51/yprj/uploads/product/7/icon.png?r=468689","name":"商品2","video":"","viewed":0,"likes":0,"collection":0},{"id":"6","icon":"http://139.199.211.51/yprj/uploads/product/6/icon.png?r=26425","name":"test","video":"","viewed":0,"likes":0,"collection":0},{"id":"5","icon":"http://139.199.211.51/yprj/uploads/product/5/icon.png?r=217734","name":"月卡测试","video":"","viewed":0,"likes":0,"collection":0},{"id":"4","icon":"http://139.199.211.51/yprj/uploads/product/4/icon.png?r=794759","name":"次卡（单次购）","video":"","viewed":0,"likes":0,"collection":0}]}
     */

    public DataBean data;

    public static class DataBean {
        public List<AdvertBean> advert;
        public List<ClassifyBean> classify;
        public List<ProductBean> product;

        public static class AdvertBean {
            /**
             * type : 2
             * icon : http://139.199.211.51/yprj/uploads/advert/17/icon.png?r=796755
             * url :
             * product_id : 8
             */

            public String type;
            public String icon;
            public String url;
            public String product_id;
        }

        public static class ClassifyBean {
            /**
             * id : 21
             * name : 护理
             * icon : http://139.199.211.51/yprj/uploads/product/category/21/icon.png?r=997554
             */

            public String id;
            public String name;
            public String icon;
        }

        public static class ProductBean {
            /**
             * id : 13
             * icon : http://139.199.211.51/yprj/uploads/product/13/icon.png?r=755016
             * name : 测试商品
             * video : http://139.199.211.51/yprj/uploads/product/13/video/18020903590283052.mp4?r=76770
             * viewed : 0
             * likes : 0
             * collection : 0
             */

            public String id;
            public String icon;
            public String name;
            public String video;
            public String category;
            public int viewed;
            public int likes;
            public int collection;
        }
    }
}
